<p class="form-title">
  基本资料
</p>
<form [formGroup]="signForm">
  <seed-form-input [title]="'姓名'" [defaultValue]="setBaseDefault('commingName')"  id="form-name" formControlName="commingName" [placeholder]="'请输入真实姓名'" ngDefaultControl >
    <p class="error-tip" *ngIf="!signForm.controls['commingName'].valid">请输入真实姓名</p>
  </seed-form-input>
  <seed-form-select-sex [defaultValue]="setBaseDefault('sex')" id="form-sex" formControlName="sex" ngDefaultControl>
    <p class="error-tip" *ngIf="!signForm.controls['sex'].valid">请选择性别</p>
  </seed-form-select-sex>
  <seed-form-input [title]="'证件号'" [defaultValue]="setBaseDefault('idNo')"  id="form-certificate" formControlName="idNo" [placeholder]="'请输入有效证件号'" ngDefaultControl >
    <p class="error-tip" *ngIf="!signForm.controls['idNo'].valid">请输入真实有效证件号</p>
  </seed-form-input>
  <seed-form-input [title]="'手机号'" [type]="'tel'" [defaultValue]="setBaseDefault('linkPhone')" id="form-phone" formControlName="linkPhone" [placeholder]="'请输入有效手机号'" ngDefaultControl >
    <p class="error-tip" *ngIf="!signForm.controls['linkPhone'].valid">请输入有效手机号</p>
  </seed-form-input>

  <seed-form-select-date [ngClass]="{'last-item': addition?.length === 0}" [defaultValue]="setBaseDefault('birthday')" id="form-date" formControlName="birthday"  [placeholder]="'请选择出生日期'" ngDefaultControl >
    <p class="error-tip" *ngIf="!signForm.controls['birthday'].valid">请选择出生日期</p>
  </seed-form-select-date>

  <seed-form-item [ngClass]="{'last-item': last}" [type]="item.fieldType"
                  (valueChange)="itemChagne($event,item.fieldText)"
                  [defaultValue]="setCustomerDefault(item.fieldText)"
                  [title]="item.fieldText" [selectValue]="item.boxValue"
                  *ngFor="let item of addition; let last = last;"
                  formControlName="{{item.fieldText}}"
                  ngDefaultControl>
    <p class="error-tip" *ngIf="!signForm.controls[item.fieldText].valid && signForm.controls[item.fieldText].errors['required']">所有报名项不能为空</p>
    <p class="error-tip" *ngIf="
          !signForm.controls[item.fieldText].valid
          && signForm.controls[item.fieldText].errors['invalidAccount']
    ">包含非常规字符，请重新输入</p>
    <p class="error-tip" *ngIf="
        !signForm.controls[item.fieldText].valid
        && !signForm.controls[item.fieldText].errors['required']
        && signForm.controls[item.fieldText].errors['maxlength']
    ">超过50个字限制</p>
  </seed-form-item>
  <ng-content></ng-content>
</form>
